package com.zenaprod.framework.date;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static DateFormat frShortDateFormat = new SimpleDateFormat("dd/MM/yyyy");
    public static DateFormat frLongDateFormat = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss");


    public static String getStringifiedNow(boolean withTime) {
        return !withTime
                ? frShortDateFormat.format(new Date())
                : frLongDateFormat.format(new Date());
    }
}
